To construct a new Importer, do the following:

1. Create a new folder with the domain name that the importer should know how to parse: "example.com".  If you want to be able to handle both "example.com" and "www.example.com", name the folder "www.example.com" and the Importers script will automatically use it for both.

2. Inside that folder, create a new AppleScript with that domain name: "example.com.scpt".

3. Also inside that folder, you can add any additional helper files you might need, such as Perl scripts, XSL stylesheets, or more.


The API for the Importers for BibDesk is as follows.

Input:
Your script will be called with the parameter pageURL which indicates the URL of the page that should be parsed for a reference.

Output:
Your script should return a list of values.  The first value is a success/failure code, and the second element is a string.
  return {-1, message}
    -1: Indicates that the URL is not a supported URL.
    message: Display error message in a dialog box.
  return {0, ""}
    0: Indicates that an error occurred.
    "": No custom error message string is allowed.
  return {1, bibtexString}
    1: Indicates that the URL was successfully processed.
    bibtexString: The full BibTeX entry to insert into BibDesk.

Errors:
You should catch all errors that could occur during your script using try... on error ... end try.  If an error occurs, you should 
  return {0, ""}